import time

from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase = "DBshop033"
firefox = openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,'商品管理','商品索引')

#点击更新索引
firefox.find_element_by_xpath('//button[@onclick="dbshop_start_goodsindex_update();"]').click()
time.sleep(5)
firefox.switch_to.alert.accept()
firefox.find_element_by_xpath('//button[contains(text(),"保存索引设置")]').click()

